using System;
using System.Security.Cryptography;

namespace Customs.Components.KDT
{
	public class BaseClass
	{
		protected string createSalt(int size)
		{
			// Generate a cryptographic random number using the cryptographic.
			// Service provider.
			RNGCryptoServiceProvider rng = new RNGCryptoServiceProvider();
			byte[] buff = new byte[size];
			rng.GetBytes(buff);
			// Return a Base64 string representation of the random number.
			return Convert.ToBase64String(buff);
		}
	}
}